<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8"/>
    <meta http-equiv="Access-Control-Allow-Origin" content="http://localhost:8080"/>
    <title>条件if else测试</title>
</head>
<body>
<p>条件if else测试</p>
<p h-unless="{age==20}" h-text="出来了">否则啦啦啦</p>


<script src="http://cdn.bootcss.com/zepto/1.1.6/zepto.js"></script>
<!--<script src="http://cdn.bootcss.com/jquery/1.11.2/jquery.min.js"></script>-->
<!--去掉下面两个js可以预览静态效果-->
<script type='text/javascript' src="../domTemplate.js"></script>
<script type='text/javascript' src="../dt.template.js"></script>

<script type="text/javascript">
    $(function () {
        $.domTemplate.init({data:{age:50}});
    });

</script>


</body>
</html>